<<<<<<< HEAD
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Y1 {
    public static void main(String[] args) throws Exception{
        ServerSocket serverSocket=new ServerSocket(9999);
        System.out.println("[HelloServer]服务器启动监听...");
        Socket client=serverSocket.accept();
        PrintStream out=new PrintStream(client.getOutputStream());
        out.println("www.yootk.com");
        client.shutdownOutput();
        serverSocket.close();
=======
<<<<<<< HEAD
import java.util.ArrayList;
import java.util.*;
public class Y1 {
    public static void main(String[] args) throws Exception{
        List <String> all=new ArrayList<>();
        all.add("沐言科技：www.yootk.com");
        all.add("李华：edu.yootk.com");
        all.add("沐言科技：www.yootk.com");
        for (Object temp:all.toArray()){
            System.out.println("【集合数据】"+temp);
        }
=======
import java.io.File;
import java.io.*;
public class Y1 {
    public static void main(String[] args) throws Exception{
        File file=new File("E:"+File.separator+"muyan"+File.separator+"vip"+File.separator+"yootk.txt");
        if (!file.getParentFile().exists()){
            file.getParentFile().mkdirs();
        }
        OutputStream output =new FileOutputStream(file);
        String message="www.yootk.com";
        byte data[]=message.getBytes();
        output.write(data);
        output.close();
>>>>>>> f33091f7d3c9fad97e415e3fe7e0daaa9a183f56
>>>>>>> 4442d0ff08afd6a675d4f7f09aa88fa83a0c21ef
    }
}
